package com.lm.location.action;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class LocationAction extends ActionSupport{
	private String locationID = null;
	private String locationCode = null;
	private String name = null;
	private String category = null;
	private String address = null;
	private String block = null;
	private String district = null;
	private String state = null;
	private String country = null;
	private String landarea = null;
	private String landterm = null;
	private String landtype = null;
	private Double runningft = null;
	private String coveredarea = null;
	private String registeredname = null;
	private String registerationno = null;
	private String registereddate = null;
	private String subregistrar = null;
	private Double estvalue;
	private Double stmpexp;
	private Double otherexp;
	private String regholder = null;
	private String regcopy = null;
	private String buildingmap = null;
	private String CanteenOption = null;
	private String lndmark = null;
	private String distance = null;
	private String responsible = null;
	private String status = null;
	private Double balance;
	public List<String> stateNameList = null;
	public List<String> getStateNameList() {
		System.out.println("------Inside getter of getStateNameList----");
		return stateNameList;
	}
	public void setStateNameList(List<String> stateNameList) {
		this.stateNameList = stateNameList;
		System.out.println("-----Inside setter of setStateNameList() size is "+stateNameList.size());
		
	}
	public List<State> stateList;
	public List<String> districtNameList = new ArrayList<String>();

	public List<String> getDistrictNameList() {
		System.out.println("-------Inside getter of getDistrictNameList------");
		return districtNameList;
	}
	public void setDistrictNameList(List<String> districtNameList) {
		this.districtNameList = districtNameList;
		System.out.println("------Inside setter of setdistrictNameList() size is ------"+districtNameList.size());
	}

	public List<State> getStateList() {
		return stateList;
	}
	public void setStateList(List<State> stateList) {
		this.stateList = stateList;
	}
	public List<District> getDistrictList() {
		return districtList;
	}
	public void setDistrictList(List<District> districtList) {
		this.districtList = districtList;
	}
	public List<District> districtList;
	public Location locationToEdit = null;
	public Location getGetLocationToEdit() {
		return locationToEdit;
	}
	public void setGetLocationToEdit(Location locationToEdit) {
		this.locationToEdit = locationToEdit;
	}
	public List<Location> locationList;
	
	public List<Location> getLocationList() {
		return locationList;
	}
	public void setLocationList(List<Location> locList) {
		this.locationList = locList;
	}
	
	public String getLocationID() {
		return locationID;
	}
	public void setLocationID(String locationID) {
		this.locationID = locationID;
	}
	public Double getBalance() {
		return balance;
	}
	public void setBalance(Double balance) {
		this.balance = balance;
	}
	public String getUploadImage() {
		return uploadImage;
	}
	public void setUploadImage(String uploadImage) {
		this.uploadImage = uploadImage;
	}
	public String getUploadVideo() {
		return uploadVideo;
	}
	public void setUploadVideo(String uploadVideo) {
		this.uploadVideo = uploadVideo;
	}
	private String uploadImage = null;
	private String uploadVideo = null;
	
	public String getLocationCode() {
		return locationCode;
	}
	public void setLocationCode(String locationCode) {
		this.locationCode = locationCode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getBlock() {
		return block;
	}
	public void setBlock(String block) {
		this.block = block;
	}
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getLandarea() {
		return landarea;
	}
	public void setLandarea(String landarea) {
		this.landarea = landarea;
	}
	public String getLandterm() {
		return landterm;
	}
	public void setLandterm(String landterm) {
		this.landterm = landterm;
	}
	public String getLandtype() {
		return landtype;
	}
	public void setLandtype(String landtype) {
		this.landtype = landtype;
	}
	public Double getRunningft() {
		return runningft;
	}
	public void setRunningft(Double runningft) {
		this.runningft = runningft;
	}
	public String getCoveredarea() {
		return coveredarea;
	}
	public void setCoveredarea(String coveredarea) {
		this.coveredarea = coveredarea;
	}
	public String getRegisteredname() {
		return registeredname;
	}
	public void setRegisteredname(String registeredname) {
		this.registeredname = registeredname;
	}
	public String getRegisterationno() {
		return registerationno;
	}
	public void setRegisterationno(String registerationno) {
		this.registerationno = registerationno;
	}
	public String getRegistereddate() {
		return registereddate;
	}
	public void setRegistereddate(String registereddate) {
		this.registereddate = registereddate;
	}
	public String getSubregistrar() {
		return subregistrar;
	}
	public void setSubregistrar(String subregistrar) {
		this.subregistrar = subregistrar;
	}
	public Double getEstvalue() {
		return estvalue;
	}
	public void setEstvalue(Double estvalue) {
		this.estvalue = estvalue;
	}
	public Double getStmpexp() {
		return stmpexp;
	}
	public void setStmpexp(Double stmpexp) {
		this.stmpexp = stmpexp;
	}
	public Double getOtherexp() {
		return otherexp;
	}
	public void setOtherexp(Double otherexp) {
		this.otherexp = otherexp;
	}
	public String getRegholder() {
		return regholder;
	}
	public void setRegholder(String regholder) {
		this.regholder = regholder;
	}
	public String getRegcopy() {
		return regcopy;
	}
	public void setRegcopy(String regcopy) {
		this.regcopy = regcopy;
	}
	public String getBuildingmap() {
		return buildingmap;
	}
	public void setBuildingmap(String buildingmap) {
		this.buildingmap = buildingmap;
	}
	public String getCanteenOption() {
		return CanteenOption;
	}
	public void setCanteenOption(String canteenOption) {
		CanteenOption = canteenOption;
	}
	public String getLndmark() {
		return lndmark;
	}
	public void setLndmark(String lndmark) {
		this.lndmark = lndmark;
	}
	public String getDistance() {
		return distance;
	}
	public void setDistance(String distance) {
		this.distance = distance;
	}
	public String getResponsible() {
		return responsible;
	}
	public void setResponsible(String responsible) {
		this.responsible = responsible;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	public Location getLocationDetails(){
		Location loc = new Location();
		loc.setAddress(getAddress());
		loc.setBalance(getBalance());
		loc.setBlock(getBlock());
		loc.setBuildingmap(getBuildingmap());
		loc.setCanteenOption(getCanteenOption());
		loc.setCategory(getCategory());
		loc.setCountry(getCountry());
		loc.setCoveredarea(getCoveredarea());
		loc.setDistance(getDistance());
		loc.setDistrict(getDistrict());
		loc.setEstvalue(getEstvalue());
		loc.setLandarea(getLandarea());
		loc.setLandterm(getLandterm());
		loc.setLandtype(getLandtype());
		loc.setLndmark(getLndmark());
		loc.setLocationCode(getLocationCode());
		loc.setName(getName());
		loc.setOtherexp(getOtherexp());
		loc.setRegcopy(getRegcopy());
		loc.setRegholder(getRegholder());
		loc.setRegisterationno(getRegisterationno());
		loc.setRegistereddate(getRegistereddate());
		loc.setRegisteredname(getRegisteredname());
		loc.setRegisteredname(getRegisteredname());
		loc.setResponsible(getResponsible());
		loc.setRunningft(getRunningft());
		loc.setState(getState());
		loc.setStatus(getStatus());
		loc.setStmpexp(getStmpexp());
		loc.setSubregistrar(getSubregistrar());
		loc.setLocationID(getLocationID());
		return loc;
	}
	
}
